package com.pro.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Objects;

/**
 * @author cyj
 * @date 2022.1.10$ 14.14$
 * @content :
 */
public class JsGoods {

    private Integer productId;
    private Integer productCode;
    private Integer categroyId;
    private Integer recommend;
    private Integer discount;
    private Integer ensure;
    private String productName;
    private String searchKeywords;
    private String mainImage;
    private Long currentpriceProduct;
    private Long originalpriceProduct;
    private String productDescription;
    private Integer hits;
    private Integer productSate;
    private Integer createId;
    private String createName;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createDate;
    private Integer updateId;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateDate;
    private String result;
    private String productLabel;
    private Integer saleNum;
    private Integer collectionNum;
    private Integer countNum;
    private String title;
    private Integer type;

    public JsGoods() {
        super();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JsGoods jsGoods = (JsGoods) o;
        return Objects.equals(productId, jsGoods.productId) &&
                Objects.equals(productCode, jsGoods.productCode) &&
                Objects.equals(categroyId, jsGoods.categroyId) &&
                Objects.equals(recommend, jsGoods.recommend) &&
                Objects.equals(discount, jsGoods.discount) &&
                Objects.equals(ensure, jsGoods.ensure) &&
                Objects.equals(productName, jsGoods.productName) &&
                Objects.equals(searchKeywords, jsGoods.searchKeywords) &&
                Objects.equals(mainImage, jsGoods.mainImage) &&
                Objects.equals(currentpriceProduct, jsGoods.currentpriceProduct) &&
                Objects.equals(originalpriceProduct, jsGoods.originalpriceProduct) &&
                Objects.equals(productDescription, jsGoods.productDescription) &&
                Objects.equals(hits, jsGoods.hits) &&
                Objects.equals(productSate, jsGoods.productSate) &&
                Objects.equals(createId, jsGoods.createId) &&
                Objects.equals(createName, jsGoods.createName) &&
                Objects.equals(createDate, jsGoods.createDate) &&
                Objects.equals(updateId, jsGoods.updateId) &&
                Objects.equals(updateDate, jsGoods.updateDate) &&
                Objects.equals(result, jsGoods.result) &&
                Objects.equals(productLabel, jsGoods.productLabel) &&
                Objects.equals(saleNum, jsGoods.saleNum) &&
                Objects.equals(collectionNum, jsGoods.collectionNum) &&
                Objects.equals(countNum, jsGoods.countNum) &&
                Objects.equals(title, jsGoods.title) &&
                Objects.equals(type, jsGoods.type);
    }

    @Override
    public int hashCode() {
        return Objects.hash(productId, productCode, categroyId, recommend, discount, ensure, productName, searchKeywords, mainImage, currentpriceProduct, originalpriceProduct, productDescription, hits, productSate, createId, createName, createDate, updateId, updateDate, result, productLabel, saleNum, collectionNum, countNum, title, type);
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getProductCode() {
        return productCode;
    }

    public void setProductCode(Integer productCode) {
        this.productCode = productCode;
    }

    public Integer getCategroyId() {
        return categroyId;
    }

    public void setCategroyId(Integer categroyId) {
        this.categroyId = categroyId;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    public Integer getDiscount() {
        return discount;
    }

    public void setDiscount(Integer discount) {
        this.discount = discount;
    }

    public Integer getEnsure() {
        return ensure;
    }

    public void setEnsure(Integer ensure) {
        this.ensure = ensure;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSearchKeywords() {
        return searchKeywords;
    }

    public void setSearchKeywords(String searchKeywords) {
        this.searchKeywords = searchKeywords;
    }

    public String getMainImage() {
        return mainImage;
    }

    public void setMainImage(String mainImage) {
        this.mainImage = mainImage;
    }

    public Long getCurrentpriceProduct() {
        return currentpriceProduct;
    }

    public void setCurrentpriceProduct(Long currentpriceProduct) {
        this.currentpriceProduct = currentpriceProduct;
    }

    public Long getOriginalpriceProduct() {
        return originalpriceProduct;
    }

    public void setOriginalpriceProduct(Long originalpriceProduct) {
        this.originalpriceProduct = originalpriceProduct;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public Integer getHits() {
        return hits;
    }

    public void setHits(Integer hits) {
        this.hits = hits;
    }

    public Integer getProductSate() {
        return productSate;
    }

    public void setProductSate(Integer productSate) {
        this.productSate = productSate;
    }

    public Integer getCreateId() {
        return createId;
    }

    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getProductLabel() {
        return productLabel;
    }

    public void setProductLabel(String productLabel) {
        this.productLabel = productLabel;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public Integer getCollectionNum() {
        return collectionNum;
    }

    public void setCollectionNum(Integer collectionNum) {
        this.collectionNum = collectionNum;
    }

    public Integer getCountNum() {
        return countNum;
    }

    public void setCountNum(Integer countNum) {
        this.countNum = countNum;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

}
